package edu.zut;

import java.util.Scanner;

public class WhileDemo2 {
    public static void main(String[] args){
        int count = 1;
        do {
            System.out.println("请输入第" + count + "个学生成绩");
            int score ;
            Scanner input = new Scanner(System.in);
            score = input.nextInt();
            if (score <= 100 && score >= 0)
                if (score >= 90)
                    System.out.println("优秀");
                else if (score >= 60)
                    System.out.println("合格");
                else
                    System.out.println("不合格");
            else System.out.println("你输入的成绩不合法");
            count++;
        }while (count <=10 );
    }
}
